# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo_01
# Description:  简单的创建进程
# Author:       yzl
# Date:         2019-04-07
#-------------------------------------------------------------------------------

import multiprocessing as mp
import time

def worker(num):
    time.sleep(5)
    print('Worker',num)

if __name__ == '__main__':
    jobs = []
    for i in range(5):
        p = mp.Process(target=worker,args=(i,))
        p.start()


